﻿using System;


namespace Orid.Management.Statistics.Tools.Decomposition.Data
{
    class AccountOffline:Account
    {

        string connectString, tableName;

        public AccountOffline()
        {

            connectString = Config.Setting.SettingInstance.DBAddress_Offline;
            //[Accounts]
            tableName = Config.Setting.SettingInstance.Accounts_Offline;
        }

        public override string GetLoginName(int? accountID)
        {
            string LoginName = string.Empty;
            try
            {

                if (accountID == null)
                {
                    return null;
                }

                return GetLoginName(accountID, connectString, tableName);

            }
            catch (System.Data.SqlClient.SqlException ex)
            {
                throw (new Exception(ex.Message));
            }

        }
    }
}
